import request from '@/utils/request'
import { list } from "@/api/monitor/operlog";

// 查询线索追踪列表
export function listClueTrack(query) {
  query.pageNum = 1;
  query.pageSize = 5;
  return list(query)
}

// 新增线索追踪
export function addClueTrack(data) {
  return request({
    url: '/crm/clue/track',
    method: 'post',
    data: data
  })
}

// 转伪线索
export function fakeClue(id, data) {
  return request({
    url: `/crm/clue/track/fake/${id}`,
    method: 'put',
    data
  })
}

// 捞取线索
export function restoreClue(data) {
  return request({
    url: `/crm/clue/track/restore/${data.id}`,
    method: 'put',
    data
  })
}
// 转商机
export function transform(data) {
  return request({
    url: `/crm/clue/track/transform/${data.clueId}`,
    method: 'put',
    data
  })
}

